import { exportWeb3Instance } from '@/utils/provider';

import addresses from '@/config/constants/contracts.js';

import htaycAbi from '@/config/abi/htayc.json';
const getContract = (abi, address) => {
  const simpleWeb3 = exportWeb3Instance();
  return new simpleWeb3.eth.Contract(abi, address);
};
export const getHtaycAbiContract = () => {
  return getContract(htaycAbi, addresses.htayc);
};

